package com.kongxx.struts2study.common.web.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;

public class LoggerInterceptor implements Interceptor {

	public void init() {

	}

	public void destroy() {

	}

	public String intercept(ActionInvocation invocation) throws Exception {
		String result = null;

		System.out.println("---LoggerInterceptor.intercept() before");
		result = invocation.invoke();
		System.out.println("---LoggerInterceptor.intercept() after");

		return result;
	}

}
